package httpUtil;

import com.google.gson.JsonArray;

import java.io.Serializable;
import java.util.List;

/**
 * Created by loma on 2017/4/12.
 */

public class PageRes  implements Serializable{
    //0
    private int number;
    //true
    private boolean last;
    //10
    private int size;
    //2
    private int numberOfElements;
    //1
    private int totalPages;
    //[{"nullHandling":"NATIVE","ignoreCase":false,"property":"id","ascending":false,"descending":true,"direction":"DESC"}]
    //[{"vesion":"1.5.6.1","money":"b.png","name":"物业云物业版","description":"物业云物业版","id":2},{"vesion":"1.5.6.1","money":"a.png","name":"物业云业主版","description":"物业云业主版","id":1}]
    private JsonArray content;
    //true
    private boolean first;
    //2
    private int totalElements;

    public void setNumber(int number) {
        this.number = number;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void setNumberOfElements(int numberOfElements) {
        this.numberOfElements = numberOfElements;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }



    public void setContent(JsonArray content) {
        this.content = content;
    }

    public void setFirst(boolean first) {
        this.first = first;
    }

    public void setTotalElements(int totalElements) {
        this.totalElements = totalElements;
    }

    public int getNumber() {
        return number;
    }

    public boolean isLast() {
        return last;
    }

    public int getSize() {
        return size;
    }

    public int getNumberOfElements() {
        return numberOfElements;
    }

    public int getTotalPages() {
        return totalPages;
    }



    public JsonArray getContent() {
        return content;
    }

    public boolean isFirst() {
        return first;
    }

    public int getTotalElements() {
        return totalElements;
    }



    @Override
    public String toString() {
        return "PageRes{" +
                "number=" + number +
                ", last=" + last +
                ", size=" + size +
                ", numberOfElements=" + numberOfElements +
                ", totalPages=" + totalPages +
                ", content=" + content +
                ", first=" + first +
                ", totalElements=" + totalElements +
                '}';
    }
}
